const db = require('../../middleware/db');
const Sequelize = require('sequelize');
// 广告表
module.exports = sys_ad = db.define('sys_ad', {
  key: {
    type: Sequelize.STRING(255),
    allowNull: false,
    defaultValue: ''
  },
  name: {
    type: Sequelize.STRING(60),
    allowNull: false,
    defaultValue: ''
  },
  content: {
    type: Sequelize.STRING(255),
    allowNull: false,
    defaultValue: ''
  },
  enabled: {
    type: Sequelize.INTEGER(3).UNSIGNED,
    allowNull: false,
    defaultValue: '1'
  }
})
//sys_ad.sync({ force: true })
